package excelprocess;

import java.io.*;

public class StringToFile {
	private String result="";
	private String targetFile=null;
	
	public StringToFile(String result, String targetFile){
		this.result=result;
		this.targetFile=targetFile;
	}
	public void write(){
		try{
			FileWriter fw=new FileWriter(targetFile);
			BufferedWriter bw=new BufferedWriter(fw);
			bw.write(result);
			bw.flush();
			bw.close();
			fw.close();
			
		}catch(IOException e){
			e.printStackTrace();
		}
	}
}
